package com.yhn.init.model.dto.financialDetails;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;

/**
 * 财务尾款
 *
 * @author yhnyhn123
 */
@Data
public class FinancialDetailsAddRequest implements Serializable {

    /**
     * 订单ID
     */
    @NotNull(message = "采购清单ID不能为空")
    private Long purchaseId;


    /**
     * 金额
     */
    @NotNull(message = "金额不能为空")
    @Min(value = 0, message = "金额不能为负数")
    private Integer amount;

    /**
     * 客户姓名
     */
    @NotNull(message = "客户姓名不能为空")
    private String customerName;

    /**
     * 缘由
     */
    private String reason;


    @Serial
    private static final long serialVersionUID = 1L;
}
